package org.testmyapp.tasks;

import java.util.Map;

import org.testmyapp.engine.IEngineServices;
import org.testmyapp.persistence.BusinessObjectPersistenceProvider;

public class ChooseCorrectureObject implements TaskWorker {

	public String validate(IEngineServices aes,
			Map<String, String[]> parameterMap, String processInstanceId,
			BusinessObjectPersistenceProvider bopp) {
		
		String korrekturObjekt = parameterMap.get("korrekturObjekt")[0];
		
		System.out.println("korrekturType set to " + korrekturObjekt);
		
		aes.setVariable(processInstanceId, "korrekturType", korrekturObjekt);
		
		return "";
	}

}
